#ifndef __HTTPD_H__
#define __HTTPD_H__

#define SERVER_VERSION	"IceBit"				/* Server Version.				*/
#define BUF_SIZE		4096					/* Size of the buffer.			*/ 
#define QUEUE_SIZE		10						/* Queue Size					*/

struct http_thread_vars
{
	char buf[BUF_SIZE];
	char sendbuf[BUF_SIZE];
	char *params[4];
	char resp;
	char *ip;
	int reqs;
	int sa;
	int i;
	int tid;	
};

int sock;
long active_threads;

void httpd_start();
void *httpd_handle(void *thrid);
void httpd_disp_err(int sa, int err);
void httpd_send_html(int sa);
void httpd_parse_get(char param[3], char *str);
void httpd_exit();

#endif
